package org.millioncall.yueyoga.admin.model;

import java.util.Date;

import org.millioncall.yueyoga.common.utils.AgeUtil;

/**
 * 班级成员model
 * 
 * @author zangjinyu
 * 
 */
public class ClassMemberModel {
	private Integer id;// 主键编号
	private String memberCode;// 会员卡号
	private String name;
	private String mobile;
	private Date birthday;
	private String area;// 所在区域
	private String advisor;// 会籍顾问
	private String officer;// 负责人

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMemberCode() {
		return memberCode;
	}

	public void setMemberCode(String memberCode) {
		this.memberCode = memberCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Date getBirthday() {
		return birthday;
	}

	/**
	 * 返回年龄
	 * 
	 * @return
	 */
	public Integer getAge() {
		if (this.birthday == null) {
			return null;
		}
		return AgeUtil.getAgeByBirthday(this.birthday);
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getAdvisor() {
		return advisor;
	}

	public void setAdvisor(String advisor) {
		this.advisor = advisor;
	}

	public String getOfficer() {
		return officer;
	}

	public void setOfficer(String officer) {
		this.officer = officer;
	}
}
